package cn.edu.zjicm.wordsnet_d.handler;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Handler;
import cn.edu.zjicm.wordsnet_d.R;

public class LoadWindowHandler extends Handler{
	private Context mContext;
	private ProgressDialog dialog2 = null;
	
	public LoadWindowHandler(Context mContext){
		this.mContext = mContext;
	}
	
	public void handleMessage(android.os.Message msg) {
		switch (msg.what) {
		case 0:
			dialog2 = new ProgressDialog(mContext);
			dialog2.setCancelable(false);
			dialog2.setCanceledOnTouchOutside(false);
			dialog2.show();
			dialog2.setContentView(R.layout.customprogressdialog);

			break;

		case 1:
			dialog2.dismiss();
			break;
		}
	};
};
